package com.car.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.car.entity.Car;
import com.car.entity.Driver;
import com.car.entity.Orders;

public interface AdminService {
	
	/**
	 * 管理员登录
	 * @param request
	 * @param response
	 * @return
	 */
	public boolean login();
	
	/**
	 * 查看所有用户
	 * @param request
	 * @param response
	 * @return
	 */
	public String showUser();
	
	/**
	 * 删除用户
	 * @param request
	 * @param response
	 * @return
	 */
	public boolean delUser(int userid);
	
	/**
	 * 添加司机
	 * @param request
	 * @param response
	 * @return
	 */
	public boolean addDriver(Driver driver);
	
	/**
	 * 删除司机
	 * @param request
	 * @param response
	 * @return
	 */
	public boolean delDriver(int driverid);
	
	/**
	 * 修改司机
	 * @param request
	 * @param response
	 * @return
	 */
	public boolean modifyDriver(Driver driver);
	
	/**
	 * 查询所有司机
	 * @param request
	 * @param response
	 * @return
	 */
	public List<Driver> queryDriver();
	
	/**
	 * 添加车辆
	 * @param request
	 * @param response
	 * @return
	 */
	public boolean addCar(Car car);
	
	/**
	 * 删除车辆
	 * @param request
	 * @param response
	 * @return
	 */
	public boolean delCar(int carid);
	
	/**
	 * 修改车辆
	 * @param request
	 * @param response
	 * @return
	 */
	public boolean modifyCar(Car car);
	
	/**
	 * 查询所有车辆
	 * @param request
	 * @param response
	 * @return
	 */
	public List<Car> queryCar();
	
	/**
	 * 修改订单
	 * @param request
	 * @param response
	 * @return
	 */
	public boolean modifyOrder(Orders orders);
	
	/**
	 * 查询所有订单
	 * @param request
	 * @param response
	 * @return
	 */
	public List<Orders> showAllorder();

}
